package com.lighting.smssystem.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lighting.smssystem.constrants.UserRole;
import com.lighting.smssystem.constrants.UserStatus;
import com.lighting.smssystem.utils.Long2StringConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Author LeeMaster
 */
@Data
@ApiModel
@TableName("user_tbl")
public class User {

    @JsonSerialize(using = Long2StringConvert.class)
    @TableId("user_id")
    private Long userId;

    @ApiModelProperty
    private String userName;

    @ApiModelProperty
    private String userPhone;

    @ApiModelProperty
    private String userChname;

    @ApiModelProperty
    private UserRole userRole;

    @ApiModelProperty
    private String userCompanyName;

    @ApiModelProperty
    private String userScope;

    @ApiModelProperty
    private String userPassword;

    @ApiModelProperty
    private UserStatus userStatus;

    private Date userAt;
}
